package com.zch.starter.metrics.prometheus.springboot.starter.config.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;

@ConfigurationProperties(prefix = "app.heartbeat")
public class HeartBeatConfig {
    private long interval = 5000; // 默认5秒
    private boolean enabled = false;

    // getter和setter
    public long getInterval() { return interval; }
    public void setInterval(long interval) { this.interval = interval; }

    public boolean isEnabled() {
        return enabled;
    }

    public void setEnabled(boolean enabled) {
        this.enabled = enabled;
    }
}